<?php

namespace Database\Seeders;

use App\Models\Admin;
use App\Services\HelpService;
use Illuminate\Database\Seeder;

class AdminSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        Admin::query()->firstOrCreate([
            'account' => 'admin',
        ], [
            'password' => bcrypt('123456'),
            'avatar' => HelpService::cdnAsset('/_assets/images/user.png'),
        ]);
    }
}
